<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/AdminBase.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<title>GI ADMIN</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<?if(0){?>
<link href="css/admin_all.css" rel="stylesheet" type="text/css" />
<?}?>
<link href="<?=$TPL[url]?>css/admin_all.css" rel="stylesheet" type="text/css" />
<script src="<?=$TPL[url]?>js/admin_all.js" language="javascript"></script>
<script>
var imgpath = '<?=$TPL[url]?>images';
</script>
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
<!--
.tr31 {background:url(<?=$TPL[url]?>images/tr3.gif) left bottom repeat-x;font-size:12px;line-height:18px;}
-->
</style>
<!-- InstanceEndEditable -->
</head>
<body>
<div class="tt">
<?if($tabs){?>
  <ul class="nav3">
  <?
  foreach($tabs as $t_name => $t_url ){
  ?>
  <li><a href="<?=$t_url?>"><?=$t_name?></a></li>
  <?}?>
  </ul>
<?}?>
<?if($tip){?>
  <div class="c"></div>
  <h3>功能提示</h3>
  <div class="tr5"><?=$tip?></div>
<?}?>
 <!-- InstanceBeginEditable name="Content" -->
  <form method="post" action="<?=$this->url('Save')?>">
    <h2> <span class="fr">标题：
      <input name="name" type="text" id="name" size="16" />
      <input type="submit" class="btn" value="搜 索" style="margin-bottom:.5em;" />
    </span></h2>
  </form>
  <div class="c"></div>
  <form method="post" action="<?=$this->url("Batch")?>" id="ls_form">
    <table width="100%" cellspacing="0" cellpadding="0">
      <tr class="tr3 s3" align="center">
        <td width="36"><input type="checkbox" name="checkAll" id="checkAll" onclick="CheckAll(window.ls_form)" /></td>
        <td width="36">ID</td>
        <td>标 题</td>
        <td width="80" class="tal">&nbsp;&nbsp;&nbsp;&nbsp;操 作</td>
      </tr>
      <?foreach($data as $row){?>
      <tr class="tr3" >
        <td><input name="pkv[]" type="checkbox" id="pkv[]" value="<?=$row[$pk]?>" /></td>
        <td><?=$row[$pk]?></td>
        <td><?=h($row['name'])?></td>
        <td nowrap="nowrap" class="tal">
        <a class="fourm-two" href="<?=$this->url('Edit',"$pk={$row[$pk]}")?>"><span class="edit" title="编辑"></span></a><a class="fourm-two" onclick="return confirm('你确定要删除该条目吗？')" href="<?=$this->url('Remove',"$pk={$row[$pk]}")?>"><span class="del" title="删除"></span></a></td>
      </tr>
      <?}?>
    </table>
    <br />
    <center>
      <input type="submit" value="提 交" class="btn" />
    </center>
    <br/>
  </form>
  <script language="JavaScript" type="text/javascript">
function del(){
	return confirm('确定要删除此条目吗？');
}
  </script>
<!-- InstanceEndEditable --></div>
<div class="c"></div>
<div class="bottom">
<?include("Footer")?>
</div>
</body>
<!-- InstanceEnd --></html>
